package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 特殊事件表
 * </p>
 *
 * @author zqb
 * @date 2024-07-22 16:36:14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_pat_event")
public class BPatEvent extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableField(value = "patient_ident", condition = LIKE)
    @Schema(description = "")
    private String patientIdent;
    /**
     * 
     */
    @TableField(value = "hospital_number", condition = LIKE)
    @Schema(description = "")
    private String hospitalNumber;
    /**
     * 事件发生时间
     */
    @TableField(value = "event_time", condition = EQUAL)
    @Schema(description = "事件发生时间")
    private LocalDateTime eventTime;
    /**
     * 事件名称
     */
    @TableField(value = "event_name", condition = LIKE)
    @Schema(description = "事件名称")
    private String eventName;
    /**
     * 是否删除
     */
    @TableField(value = "is_deleted", condition = EQUAL)
    @Schema(description = "是否删除")
    private Integer isDeleted;


    @Schema(description = "用来对应时间轴")
    @TableField(exist = false)
    private String hours;

    @Schema(description = "YY-MM-dd-上午 YY-MM-dd-下午 例：2022-02-15-下午")
    @TableField(exist = false)
    private  String diffNoon;
}
